/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: DuKe TeAm
 * License Type: Purchased
 */
package orm;

import java.util.List;
import org.hibernate.criterion.DetachedCriteria;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class Trp_sexoDetachedCriteria extends AbstractORMDetachedCriteria {
	public final StringExpression se_id_cod_sexo;
	public final StringExpression se_des_sexo;
	
	public Trp_sexoDetachedCriteria() {
		super(orm.Trp_sexo.class, orm.Trp_sexoCriteria.class);
		se_id_cod_sexo = new StringExpression("se_id_cod_sexo", this.getDetachedCriteria());
		se_des_sexo = new StringExpression("se_des_sexo", this.getDetachedCriteria());
	}
	
	public Trp_sexoDetachedCriteria(DetachedCriteria aDetachedCriteria) {
		super(aDetachedCriteria, orm.Trp_sexoCriteria.class);
		se_id_cod_sexo = new StringExpression("se_id_cod_sexo", this.getDetachedCriteria());
		se_des_sexo = new StringExpression("se_des_sexo", this.getDetachedCriteria());
	}
	
	public Trp_alumnoDetachedCriteria createTrp_alumnoCriteria() {
		return new Trp_alumnoDetachedCriteria(createCriteria("ORM_Trp_alumno"));
	}
	
	public Trp_sexo uniqueTrp_sexo(PersistentSession session) {
		return (Trp_sexo) super.createExecutableCriteria(session).uniqueResult();
	}
	
	public Trp_sexo[] listTrp_sexo(PersistentSession session) {
		List list = super.createExecutableCriteria(session).list();
		return (Trp_sexo[]) list.toArray(new Trp_sexo[list.size()]);
	}
}

